package com.gao.orange.service.impl;


import com.gao.orange.api.INacosService;
import com.gao.orange.config.NacosConfig;
import org.apache.dubbo.config.annotation.DubboService;
import org.springframework.beans.factory.annotation.Autowired;

/**
 * @author jinYuLinLang
 * @version 1.0.0
 * @ClassName NacosServiceImpl.java
 * @Description <p>实现类</p>
 * @createTime 2021-03-08 11:39:00
 */
@DubboService(version = "${dubbo.service.version}")
public class NacosServiceImpl implements INacosService {
    @Autowired
    private NacosConfig nacosConfig;

    @Override
    public String test() {
        String serverName = nacosConfig.getServerName();
        return serverName;
    }
}
